import { Authority } from '../request'

const { post, get } = Authority
// 通用页面-单页新增修改
export const normalAdd = params => post('/common/normal/saveOrUpdate', params)

// 单页查询
export const normalGetList = params => get('/open/normal/getByType', { params })

// 通用页面-列表新增修改
export const listAdd = params => post('/common/list/saveOrUpdate', params)

// 通用页面-列表查询
export const listQueryList = params => get('/open/list/queryList', { params })


// 通用页面-列表删除
export const listDelete = params => post('/common/list/delete', params)

// 通用页面-详情查询
export const listGetById = params => get('/open/list/getById', { params })

// 积分列表
export const integralQueryList = params => get('/user/integral/v1/queryList', { params })
// 积分规则更新
export const integralUpdate = params => post('/user/integral/v1/update', params)
